function fm
	set f (cat "$HOME/.fzf-marks" | fzf | awk -F ' : ' '{print $2}')

	set f (string trim $f)

	if not test -n "$f"
		return
	end

	set t ($HOME/.scripts/judge_type.sh $f)

	if test "$t" = "text"
		cd (dirname $f)
		nvim $f
	else if test $t = "image"
		r (dirname $f)
	else if test $t = "directory"
		r $f
	else
		r (dirname $f)
	end
	
	return
end
